package com.sky.directdeal.widget;

import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnKeyListener;
import android.view.KeyEvent;

public class DDProgressDialog extends ProgressDialog implements OnKeyListener {

	public DDProgressDialog(Context context,String title,String message,boolean indeterminate,boolean cancelable) {
		super(context);
		setTitle(title);
		setMessage(message);
		setCanceledOnTouchOutside(false);
		setCancelable(false);
		setOnKeyListener(this);
	}

	@Override
	public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
		// TODO Auto-generated method stub
		return false;
	}

}
